package com.ruoyi.project.business.salaryrule.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.project.business.salaryrule.entity.MonthSalaryRule;
import com.ruoyi.project.business.salaryrule.request.EditMonthSalaryRuleRequest;
import com.ruoyi.project.business.salaryrule.request.ListMonthSalaryRuleRequest;
import com.ruoyi.project.business.salaryrule.request.AddMonthSalaryRuleRequest;
import com.ruoyi.project.business.salaryrule.response.MonthSalaryRuleResponse;

/**
 * 月薪计算规则Service接口
 * 
 * @author ${author}
 * @date 2024-02-21
 */
public interface IMonthSalaryRuleService {
    /**
     * 查询月薪计算规则
     *
     * @param id 月薪计算规则ID
     * @return 月薪计算规则
     */
    public MonthSalaryRule selectMonthSalaryRuleById(Long id);

    /**
     */
    public List<MonthSalaryRuleResponse> selectMonthSalaryRuleList(ListMonthSalaryRuleRequest request, Long tenantId);


    public int insertMonthSalaryRule(AddMonthSalaryRuleRequest request, Long deptId, Long operatorId, Long tenantId);

    /**
     * 修改月薪计算规则
     * 
     * @return 结果
     */
    public int updateMonthSalaryRule(EditMonthSalaryRuleRequest request, Long operatorId, Long tenantId);

    /**
     * 批量删除月薪计算规则
     * 
     * @return 结果
     */
    public int deleteMonthSalaryRuleByIds(Long[] ids, Long operatorId, Long tenantId);

    /**
     * 删除月薪计算规则信息
     * 
     * @return 结果
     */
    public int deleteMonthSalaryRuleById(Long id, Long operatorId, Long tenantId);

    MonthSalaryRule selectRuleByDeptId(Long deptId, Long tenantId);

    MonthSalaryRule selectRuleByUserId(Long userId, Long tenantId);

    Map<Long, MonthSalaryRule> selectRuleByUserIds(List<Long> userIds, Long tenantId);
}
